package com.ruoyi.training.service;

import java.util.List;
import com.ruoyi.training.domain.TrainingIpPool;
import com.ruoyi.training.domain.dto.TrainingIpPoolDto;

/**
 * IP池Service接口
 *
 * @author rocc
 * @date 2025-06-12
 */
public interface ITrainingIpPoolService
{
    /**
     * 查询IP池
     *
     * @param id IP池主键
     * @return IP池
     */
    public TrainingIpPool selectTrainingIpPoolById(Long id);

    /**
     * 查询IP池列表
     *
     * @param trainingIpPool IP池
     * @return IP池集合
     */
    public List<TrainingIpPool> selectTrainingIpPoolList(TrainingIpPool trainingIpPool);

    /**
     * 新增IP池
     *
     * @param trainingIpPool IP池
     * @return 结果
     */
    public int insertTrainingIpPool(TrainingIpPool trainingIpPool);

    /**
     * 修改IP池
     *
     * @param trainingIpPool IP池
     * @return 结果
     */
    public int updateTrainingIpPool(TrainingIpPool trainingIpPool);

    /**
     * 批量删除IP池
     *
     * @param ids 需要删除的IP池主键集合
     * @return 结果
     */
    public int deleteTrainingIpPoolByIds(Long[] ids);

    /**
     * 删除IP池信息
     *
     * @param id IP池主键
     * @return 结果
     */
    public int deleteTrainingIpPoolById(Long id);


    public int countTrainingIpPool(TrainingIpPool trainingIpPool);

    /**
     * 批量插入IP池
     *
     * @param trainingIpPoolDto IP池
     * @return 插入结果
     */
    int betweenBatchInsert(TrainingIpPoolDto trainingIpPoolDto);
}
